/*
 * @Author: dlb
 * @Date: 2020-06-24 17:14:56
 * @LastEditTime: 2020-06-24 17:15:28
 * @LastEditors: dlb
 * @Description:
 * @FilePath: \react-training-camp\server\src\models\slider.ts
 * @可以输入预定的版权声明、个性签名、空行等
 */
import mongoose, { Schema, Document } from 'mongoose'
export interface ISliderDocument extends Document {
  url: string
  _doc: ISliderDocument
}
const SliderSchema: Schema<ISliderDocument> = new Schema(
  {
    url: String
  },
  { timestamps: true }
)

export const Slider = mongoose.model<ISliderDocument>('Slider', SliderSchema)
